namespace FileCollection
{
    using System;
    using System.Collections.Generic;
    using System.IO;

    internal class CompareFileInfoByCreationTime : IComparer<FileInfo>
    {
        public int Compare(FileInfo x, FileInfo y)
        {
            return DateTime.Compare(x.CreationTime, y.CreationTime);
        }
    }
}